package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 答辩组教师和答辩组录入员表
 * </p>
 *
 * @author liwei
 * @since 2024-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("defense_group_person")
@Schema(name = "DefenseGroupPerson对象", description = "答辩组教师和答辩组录入员表")
public class DefenseGroupPerson implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "defense_group_person_id", type = IdType.AUTO)
    private Long defenseGroupPersonId;

    @Schema(description = "答辩组编号")
    private Long defenseGroupId;

    @Schema(description = "计划编号")
    private Long academicYearId;

    @Schema(description = "人员类型。 1：答辩组组长；2：答辩组教师；3：答辩录入员")
    private Integer personType;

    @Schema(description = "录入员类型， roletype枚举。 3：教师；2：学生")
    private Integer personClerkRoletype;

    @Schema(description = "人员id")
    private Long personUserId;

    @Schema(description = "人员学院编号。教师目前不区分学院，学生区分学院")
    private Long personSecondId;

    @Schema(description = "人员专业编号。教师目前没有专业信息，学生有专业信息")
    private Long personMajorId;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "最后修改人")
    private Long modifyBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "最后修改时间")
    private LocalDateTime modifyTime;

    @Schema(description = "是否删除。是：1；否：0")
    private Integer isDelete;

    @Schema(description = "人员姓名")
    private String personName;

    @Schema(description = "人员编号")
    private String personNumber;


}
